package intellitrends.activities;

import intellitrends.activities.R;
import intellitrends.enums.ActivityCode;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;

public class SignUpActivity extends Activity {

	private String[] gender = {"MALE" , "FEMALE"};
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.signup);
	    this.InitializeControls();
	    // TODO Auto-generated method stub
	}

	private void InitializeControls(){
		Spinner spGender = (Spinner)findViewById(R.id.spinnerGender);
		ArrayAdapter<String> aa = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item,this.gender);
		spGender.setAdapter(aa);
		
		Button btnSignUp = (Button)findViewById(R.id.buttonSignUp);
		btnSignUp.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				setResult(ActivityCode.LOGIN.getCode(), new Intent());
				finish();
			}
		});
	}
}
